//
//  HFButton.m
//  ThridPackage
//
//  Created by 韩艳锋 on 2019/7/24.
//  Copyright © 2019 韩艳锋. All rights reserved.
//

#import "HFButton.h"

@implementation HFButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (BOOL)pointInside:(CGPoint)point withEvent:(nullable UIEvent *)event {
    BOOL value = [super pointInside:point withEvent:event];
    if (value) {
        return YES;
    } else {
        return CGRectContainsPoint(CGRectMake(CGRectGetMidX(self.bounds) - 15, CGRectGetMidY(self.bounds) - 15, 30, 30), point);
    }
}
@end
